<template>
  <div class="account-item rel flex-c align-center" :class="{ active: active||item.active }">
    <div class="f1">
      <div class="name">{{ item.groupName }}</div>
    </div>
    <div class="abs flex-e w-100" style="bottom: 5px; right: 5px">
      <el-checkbox v-model="item.active" />
    </div>
  </div>
</template>
<script>
export default {
  props: {
    item: {
      type: Object,
      default() {
        return {}
      }
    },
    index: {
      type: Number,
      default: -1
    },
    active: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {
      accountTypeMap: {
        person: '个人号',
        team: '企业号',
        employee: '员工号'
      }
    }
  }
}
</script>
<style lang="scss" scoped>
.account-item {
  height: 50px;
  border-radius: 15px;
  background: rgba(204, 204, 204, 0.2);
  border: 0.5px solid rgba(0, 0, 0, 1);
  box-sizing: border-box;
  padding: 0 12px;
  .name {
    font-size: 14px;
    font-weight: 400;
    color: rgba(0, 0, 0, 1);
  }
  .img {
    width: 40px;
    height: 40px;
    margin-right: 6px;
  }
  .icon-box {
    margin-top: 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 1);
    box-sizing: border-box;
    padding: 3px 6px;
    width: fit-content;
    .icon {
      width: 12px;
      height: 12px;
      margin-right: 5px;
    }
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 11.72px;
    color: rgba(0, 119, 255, 1);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
}
.account-item.active {
  background: rgba(0, 119, 255, 0.2);

  border: 0.5px solid rgba(0, 119, 255, 1);
}
</style>
